Upgrade Hugo 0.69.0 → 0.157.0#201
Open
davidemerson wants to merge 1 commit into
Open
Conversation
Breaking changes fixed: - config.toml: Remove deprecated pygmentsCodefences settings (superseded by goldmark) and [markup.blackFriday] section (renderer removed) - netlify.toml: Pin Hugo 0.157.0 in all three deploy contexts - baseof.html: Replace .Scratch / isset (removed ~0.120) with simple variable assignment for page title logic - list.html, press/list.html, presentations/list.html: .Data.Pages → .Pages - Delete 3 unused partials (get-involved-action.html, get-involved.html, docs/sidebar.html) that reference removed APIs Local build: zero errors, zero warnings, 231 pages (210 EN / 14 ES / 7 ZH). Smoke tested all major page types (homepage, blog, press, presentations, volunteer, donate, stats, map, i18n, 404) — all return 200. Title logic verified: homepage → "NYC Mesh", subpages → "Page - NYC Mesh".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It seems like a good idea to get Hugo up to date, this is like circa 2020 Hugo with six years of security vulns and whatnot missing.
A few breaking changes needed fixing:
I did a local build with these changes, no errors, no warnings, 231 pages (210 EN / 14 ES / 7 ZH(??!)). Smoke tested all major page types (homepage, blog, press, presentations, volunteer, donate, stats, map, i18n, 404) — all return 200. Title logic verified: homepage "NYC Mesh", subpages >> "Page - NYC Mesh".
Deploying
Once the PR is merged to
master, Netlify will automatically build using Hugo 0.157.0. No manual server-side action is required, the version pin innetlify.tomlis all Netlify needs.If you are building locally, ensure your local Hugo is >= 0.157.0
Post-deploy verification
After the Netlify deploy completes, spot-check these pages:
/) — hero renders, title is "NYC Mesh"/blog/) — post list renders with titles and dates/press/) — article list renders with publication, date, title, quote/presentations/) — thumbnails and links render/volunteer/) — hero, cards, FAQ accordion, calendar embed/donate/) — correct dollar amount, Stripe script tag present/stats/) — active tab highlighting, images from db.nycmesh.net load/es/support/) — renders in Spanish<style>tags in<head>(CSS inlining viasafeCSS) and OpenGraph/Twitter Card meta tagsRollback
Git revert
This reverts both the template fixes and the version pin, returning the site to Hugo 0.69.0.